package com.isoft.sjhy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.isoft.sjhy.model.Owner;
import org.springframework.stereotype.Service;

public interface OwnerService extends IService<Owner> {
    PageInfo<Owner> findOwnerAll(int page,int pagesize,Owner owner);


    /**查询分页数据
     *
     * @param page 页码
     * @param pageCount 每页条数
     * @return Ipage<Owner>*/
    IPage<Owner> findListByPage(Integer page,Integer pageCount);
    Owner queryOwnerByName(String username);

    int add(Owner owner);           /**添加*/
    int delete(Long id);            /**删除*/
    int updateData(Owner owner);    /**修改*/


    Owner findById(Long id);

    void deleteOwnerUserByUserName(String username);
  Owner queryOwnerById(long parseLong);



}
